import http from '../utils/request';

interface DefaultRes {
	code : number;
	data : string;
	msg : string;
}

// 获取乐刷云管家签约状态
export function getSignStatus() : Promise<DefaultRes> {
	return http('/api/auth/leshua/getSignStatus') as any
}
// 获取乐刷云管家签约URL
interface SignUrlParams {
	subjectType?: string;
	subjectId?: string;
	companyName?: string;
}
export function getReceiveToken(params : SignUrlParams) : Promise<DefaultRes> {
	  return http('/api/auth/leshua/getReceiveToken', params, 'POST') as any
}